pushd

@echo Linking B_GFX_1...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\b_gfx_1.cmd > b_gfx_1.map

@echo Linking B_GFX_2...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\b_gfx_2.cmd > b_gfx_2.map 

@echo Linking B_GFX_3...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\b_gfx_3.cmd > b_gfx_3.map

@echo Linking B_GFX_4...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\b_gfx_4.cmd > b_gfx_4.map

@echo Linking B_GFX_5...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\b_gfx_5.cmd > b_gfx_5.map

@echo Linking B_GFX_6...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\b_gfx_6.cmd > b_gfx_6.map

@echo Linking B_GFX_7...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\b_gfx_7.cmd > b_gfx_7.map

@echo Linking B_GFX_8...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\b_gfx_8.cmd > b_gfx_8.map

@echo Linking B_GFX_9...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\b_gfx_9.cmd > b_gfx_9.map

@echo Linking B_GFX_10...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\b_gfx_10.cmd > b_gfx_10.map

@echo Linking B_GFX_11...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\b_gfx_11.cmd > b_gfx_11.map

@echo Linking B_GFX_12...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\b_gfx_12.cmd > b_gfx_12.map

@echo Linking B_GFX_13...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\b_gfx_13.cmd > b_gfx_13.map

@echo Linking OBJECTS...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\objects.cmd > objects.map

@echo Linking BARBIE...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\barbie.cmd > barbie.map

@echo Linking SEGA...
cd \gamegear\barbie\code
lnkz80 -m -c scripts\barbie.cmd  > barbie.map
cd..

@ECHO download all
call z.bat
popd
